<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%--    相对路径--%>
    <base href="<%=basePath%>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>家庭财务管理系统</title>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="This is my page"/>
    <style type="text/css">
        <!--
        body {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
        }

        -->
    </style>
    <link href="css/css.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

</table>
<form action="/ffms/LoginServlet" method="post">
    <table width="562" border="0" align="center" cellpadding="0" cellspacing="0" class="right-table03">
        <tr>
            <td width="221">
                <table width="95%" border="0" cellpadding="0" cellspacing="0" class="login-text01">

                    <tr>
                        <td>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="login-text01">
                                <tr>
                                    <td align="center"><img src="images/ico13.gif" width="107" height="97"/></td>
                                </tr>
                                <tr>
                                    <td height="40" align="center">&nbsp;</td>
                                </tr>

                            </table>
                        </td>
                        <td><img src="images/line01.gif" width="5" height="292"/></td>
                    </tr>
                </table>
            </td>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="31%" height="35" class="login-text02">用户名称：
                            <br/>
                        </td>
                        <td width="69%">
                            <input type="text" name="userid" id="username" size="30" value=""/>
                            ${requestScope.error}        ${requestScope.error2}
                        </td>
                    </tr>
                    <tr>
                        <td height="35" class="login-text02">密　码：
                            <br/>
                        </td>
                        <td>
                            <input type="password" name="pwd1" id="pwd2" size="30" value=""/>
                        </td>
                    </tr>


                    <tr>
                        <td colspan="2" height="35" class="login-text02">管理员登录
                            <input type="radio" name="role" value="admin"/>&emsp;
                            成员登录
                            <input type="radio" name="role" value="fm"/>&emsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="35">&nbsp;</td>
                        <td>
                            <input name="Submit2" type="submit" class="right-button01" value="登录"/>
                            <input name="Submit2" type="reset" class="right-button02" value="重置"/>
                            ${requestScope.error1}
                            ${requestScope.success}    ${requestScope.success1}  ${requestScope.login_error}


                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
</body>

</html>